package com.yungu.swift.socket.communication.message;

import com.yungu.swift.socket.communication.message.base.Message;
import com.yungu.swift.socket.communication.message.base.MessageType;

/**
 * 登录响应报文
 *
 * @author Zerrion
 * @date 2018/3/12
 */
public class LoginResponseMessage extends Message {
    private Boolean success;
    private String msg;
    private Integer errCode;

    public LoginResponseMessage(boolean success, String msg) {
        super();
        super.setType(MessageType.LOGIN_RESPONSE);
        this.success = success;
        this.msg = msg;
    }

    public LoginResponseMessage(String clientUuid, Boolean success, String msg, Integer errCode) {
        super(MessageType.LOGIN_RESPONSE, clientUuid);
        this.success = success;
        this.msg = msg;
        this.errCode = errCode;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public void setErrCode(Integer errCode) {
        this.errCode = errCode;
    }
}